<template>
  <div>
    <!-- header -->
    <WebHeader />

    <!-- 返回条 -->
    <div class="web-back-bars">
      <div class="web-back-bars__icon" @click="$router.back()">
        <img src="../../assets/back-icon.png">
      </div>
      <div class="web-back-bars__bednum">01</div>
      <div>123</div>
    </div>

    <div class="remind">
      <div class="remind-title">添加强提醒</div>

      <el-form ref="form" :model="form" label-width="9rem">
        <el-form-item label="标题 :">
          <el-input 
            type="text" 
            v-model="form.title" 
            maxlength="20" 
            show-word-limit 
            placeholder="请输入标题">
          </el-input>
        </el-form-item>
        <el-form-item label="提醒内容 :" class="remind-textarea">
          <el-input 
            type="textarea" 
            :rows="6" 
            v-model="form.content" 
            maxlength="200" 
            show-word-limit 
            placeholder="请输入具体内容">
          </el-input>
        </el-form-item>
        <el-form-item>
          <div class="remind-btn">
            <div @click="onCancel" class="web-btn-long__plain">取消</div>
            <div @click="onSubmit" class="web-btn-long__primary">确定</div>
          </div>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
import WebHeader from '@/components/WebHeader'
import { Form, FormItem, Input } from 'element-ui'

export default {
  data () {
    return {
      form: {
        title: '',
        content: ''
      }
    }
  },
  components: {
    WebHeader,
    ElForm: Form,
    ElInput: Input,
    ElFormItem: FormItem,
  },
  methods: {
    onSubmit () {
      console.log('123');
    },
    onCancel () {
      console.log('234');
    }
  }
}
</script>

<style lang="scss" scoped>
.web-back-bars {
  border-bottom: 24px solid #F2F2F2;
}
.remind {
  width: 70%;
  height: 100%;
  margin: 0 auto;
  margin-top: 64px;
  &-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 50px;
    color: #333333;
    margin-bottom: 55px;
  }
  &-textarea {
    margin-top: 40px;
  }
  &-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 180px;
    .web-btn-long__plain {
      margin-right: 102px;
    }
  }
  
}
</style>